﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/MasterPages/MinimumMaster.master"
    AutoEventWireup="true" CodeBehind="LoginView.aspx.cs" Inherits="RMS.Account.Login" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MinPlaceHolder">
    <center>
        <div style="width: 380px; padding-top: 50px; padding-bottom: 50px;">
            <table class="Details" cellspacing="0">
                <tr>
                    <td colspan="2" class="header" align="center">
                        Login
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        <asp:Label ID="Label1" runat="server" Text="Username" AssociatedControlID="txtUsername"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="vldreqTxtMail" runat="server" ErrorMessage="Username is required filed"
                            Text="*" ControlToValidate="txtUsername" Display="Dynamic">
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        <asp:Label ID="Label2" runat="server" Text="Password" AssociatedControlID="txtPass"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
                        <br />
                        <asp:RequiredFieldValidator ID="vldreqTxtPass" runat="server" ErrorMessage="PassWord is required filed"
                            Text="*" ControlToValidate="txtPass" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:CustomValidator ID="vInvalidPass" ErrorMessage='Invalid Username or Password'
                            Text="*" runat="server" OnServerValidate="txtPassword_InvalidUsernameOrPassword"
                            Display="Dynamic"></asp:CustomValidator>
                        <asp:CustomValidator ID="vActivePass" ErrorMessage='Please inter you password' Text="*"
                            runat="server" OnServerValidate="txtPassword_NotActiveEmployee" Display="Dynamic"></asp:CustomValidator>
                    </td>
                </tr>
                <asp:Panel ID="NewPassword" Visible="false" runat="server">
                    <tr>
                        <td class="label">
                            <asp:Label ID="Label4" runat="server" Text="Rewrite Password" AssociatedControlID="txtRPassword"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtRPassword" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtRPassword"
                                ControlToCompare="txtPass" Text="*" Display="Dynamic" ErrorMessage="The Password not matched">
                            </asp:CompareValidator>
                        </td>
                    </tr>
                </asp:Panel>
                <tr>
                    <td colspan="2" align="left">
                        <table width="100%">
                            <tr>
                                <td>
                                </td>
                                <td align="right" valign="top">
                                    <asp:Button ID="btnLogin" runat="server" OnClick="btnlogin_Click" Text="LogIn"></asp:Button>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left" class="footer">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </center>
</asp:Content>
